<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>接口管理 - 一体化作战平台</title>
    <!-- 引入Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- 引入Font Awesome -->
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    
    <!-- Tailwind配置 -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#0066cc',
                        secondary: '#0099cc',
                        success: '#009966',
                        warning: '#ff9900',
                        danger: '#cc3300',
                        neutral: {
                            100: '#f5f7fa',
                            200: '#e4e7ed',
                            300: '#c0c4cc',
                            400: '#909399',
                            500: '#606266',
                            600: '#303133',
                            700: '#1f2937',
                        }
                    },
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                    },
                    boxShadow: {
                        'card': '0 2px 8px rgba(0, 0, 0, 0.08)',
                        'dropdown': '0 4px 16px rgba(0, 0, 0, 0.12)',
                    }
                },
            }
        }
    </script>
    
    <!-- 自定义样式 -->
    <style>
        /* 自定义滚动条 */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
        ::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 3px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #a1a1a1;
        }
        
        /* Tab标签样式 */
        .tab-button {
            transition: all 0.3s ease;
        }
        .tab-button.active {
            font-weight: 600;
            border-bottom-color: #0066cc;
            color: #0066cc;
        }
        .tab-button:hover {
            background-color: rgba(0, 102, 204, 0.05);
        }
        
        /* 系统卡片样式 */
        .system-card {
            transition: all 0.3s ease;
        }
        .system-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
    </style>
</head>
<body class="bg-neutral-100 font-sans text-neutral-600 min-h-screen flex flex-col">
    <!-- 顶部导航栏 -->
    <header class="bg-white shadow-sm fixed top-0 left-0 right-0 z-50">
        <div class="flex items-center justify-between px-4 py-3">
            <!-- Logo和标题 -->
            <div class="flex items-center space-x-3">
                <div class="w-10 h-10 bg-primary rounded-md flex items-center justify-center text-white">
                    <i class="fa fa-bank text-xl"></i>
                </div>
                <h1 class="text-xl font-bold text-neutral-700 hidden md:block">一体化作战平台</h1>
                <h1 class="text-lg font-bold text-neutral-700 md:hidden">研发交付平台</h1>
            </div>
            
            <!-- 搜索框 -->
            <div class="hidden md:flex relative flex-1 max-w-md mx-4">
                <input type="text" placeholder="搜索接口..." 
                    class="w-full pl-10 pr-4 py-2 rounded-md border border-neutral-200 focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary">
                <i class="fa fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-neutral-400"></i>
            </div>
            
            <!-- 右侧用户区域 -->
            <div class="flex items-center space-x-1 md:space-x-4">
                <!-- 通知按钮 -->
                <button class="relative p-2 rounded-full hover:bg-neutral-100 transition-all">
                    <i class="fa fa-bell-o text-lg text-neutral-600"></i>
                    <span class="absolute top-0 right-0 w-2 h-2 bg-danger rounded-full"></span>
                </button>
                
                <!-- 消息按钮 -->
                <button class="relative p-2 rounded-full hover:bg-neutral-100 transition-all hidden md:block">
                    <i class="fa fa-envelope-o text-lg text-neutral-600"></i>
                    <span class="absolute top-0 right-0 w-2 h-2 bg-primary rounded-full"></span>
                </button>
                
                <!-- 用户头像 -->
                <div class="flex items-center space-x-2 ml-2">
                    <div class="w-8 h-8 bg-neutral-200 rounded-full overflow-hidden">
                        <img src="https://picsum.photos/id/1005/200/200" alt="用户头像" class="w-full h-full object-cover">
                    </div>
                    <span class="hidden md:block text-sm font-medium text-neutral-700">张三</span>
                </div>
            </div>
        </div>
    </header>

    <!-- 主体内容 -->
    <div class="flex pt-16 flex-1">
        <!-- 左侧导航菜单 -->
        <aside class="w-16 md:w-64 bg-white shadow-sm fixed h-full left-0 top-16 overflow-y-auto scrollbar-hide transform md:transform-none transition-transform duration-300 z-40 -translate-x-full md:translate-x-0">
            <nav class="py-4">
                <ul>
                    <!-- 主导航项 -->
                    <li class="mb-1">
                        <a href="index.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-tachometer text-lg"></i>
                            <span class="hidden md:block">首页</span>
                        </a>
                    </li>
                    
                    <!-- 交付流程模块 -->
                    <li class="mb-1">
                        <a href="business_strategy.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-line-chart text-lg"></i>
                            <span class="hidden md:block">业务战略</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="architecture-management.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-sitemap text-lg"></i>
                            <span class="hidden md:block">架构管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="requirementsManagement.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-list-alt text-lg"></i>
                            <span class="hidden md:block">需求管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <div class="design-menu-wrapper">
                            <div class="flex items-center justify-between px-4 py-3 text-primary bg-primary/5 border-r-4 border-primary">
                                <a href="design_management.html" class="flex items-center space-x-3 flex-1" onclick="event.stopPropagation();">
                                    <i class="fa fa-paint-brush text-lg"></i>
                                    <span class="hidden md:block font-medium">设计管理</span>
                                </a>
                                <button id="design-menu-toggle" class="hidden md:block p-1 hover:bg-neutral-200 rounded transition-all" aria-label="展开/收起子菜单" onclick="event.stopPropagation();">
                                    <i class="fa fa-chevron-right text-xs transform transition-transform duration-300"></i>
                                </button>
                            </div>
                            <!-- 下拉子菜单 -->
                            <div id="design-submenu" class="hidden overflow-hidden transition-all duration-300 ease-in-out">
                                <div class="bg-neutral-50 py-1">
                                    <a href="interface_management.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-plug text-sm"></i>
                                        <span class="hidden md:block">接口管理</span>
                                    </a>
                                    <a href="model_management.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-cubes text-sm"></i>
                                        <span class="hidden md:block">模型管理</span>
                                    </a>
                                    <a href="data_management.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-database text-sm"></i>
                                        <span class="hidden md:block">字典管理</span>
                                    </a>
                                    <a href="ui_management.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-desktop text-sm"></i>
                                        <span class="hidden md:block">差异分析</span>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </li>
                    
                    <li class="mb-1">
                        <a href="schedule_management.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-calendar text-lg"></i>
                            <span class="hidden md:block">排期管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="developmentMage.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-code text-lg"></i>
                            <span class="hidden md:block">开发管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <div class="test-menu-wrapper">
                            <div class="flex items-center justify-between px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                                <a href="testManagement.html" class="flex items-center space-x-3 flex-1" onclick="event.stopPropagation();">
                                    <i class="fa fa-bug text-lg"></i>
                                    <span class="hidden md:block">测试管理</span>
                                </a>
                                <button id="test-menu-toggle" class="hidden md:block p-1 hover:bg-neutral-200 rounded transition-all" aria-label="展开/收起子菜单" onclick="event.stopPropagation();">
                                    <i class="fa fa-chevron-right text-xs transform transition-transform duration-300"></i>
                                </button>
                            </div>
                            <!-- 下拉子菜单 -->
                            <div id="test-submenu" class="hidden overflow-hidden transition-all duration-300 ease-in-out">
                                <div class="bg-neutral-50 py-1">
                                    <a href="test_cases.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-file-text-o text-sm"></i>
                                        <span class="hidden md:block">测试案例</span>
                                    </a>
                                    <a href="test_plans.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-calendar-check-o text-sm"></i>
                                        <span class="hidden md:block">测试计划</span>
                                    </a>
                                    <a href="test_reports.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-bar-chart text-sm"></i>
                                        <span class="hidden md:block">测试报告</span>
                                    </a>
                                    <a href="test_global_settings.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-cogs text-sm"></i>
                                        <span class="hidden md:block">全局设置</span>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </li>
                    
                    <li class="mb-1">
                        <a href="production_workflow.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-rocket text-lg"></i>
                            <span class="hidden md:block">投产上线</span>
                        </a>
                    </li>
                    
                    <!-- 新增的三个子菜单项 -->
                    <li class="mb-1">
                        <a href="quality_management.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-check-circle text-lg"></i>
                            <span class="hidden md:block">质量管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="security_management.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-shield text-lg"></i>
                            <span class="hidden md:block">安全管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="efficiency_metrics.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-bar-chart text-lg"></i>
                            <span class="hidden md:block">效能度量</span>
                        </a>
                    </li>
                    
                    <!-- 分隔线 -->
                    <li class="my-2">
                        <div class="border-t border-neutral-200 mx-4"></div>
                    </li>
                    
                    <!-- 公共模块 -->
                    <li class="mb-1">
                        <a href="teamManagement.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-users text-lg"></i>
                            <span class="hidden md:block">团队管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="settings.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-cog text-lg"></i>
                            <span class="hidden md:block">设置</span>
                        </a>
                    </li>
                </ul>
            </nav>
        </aside>

        <!-- 主内容区域 -->
        <main class="flex-1 ml-16 md:ml-64 p-6">
            <!-- 页面标题 -->
            <div class="flex flex-col md:flex-row md:items-center justify-between mb-6">
                <div>
                    <h2 class="text-2xl font-bold text-neutral-700 mb-1">接口管理</h2>
                    <p class="text-neutral-400 text-sm">管理系统接口的查看、设计、试用和运营</p>
                </div>
                <div class="mt-4 md:mt-0 flex space-x-2">
                    <button class="bg-white border border-neutral-200 text-neutral-700 px-4 py-2 rounded-md hover:bg-neutral-50 transition-all flex items-center space-x-2">
                        <i class="fa fa-download"></i>
                        <span>导出数据</span>
                    </button>
                    <button class="bg-primary text-white px-4 py-2 rounded-md hover:bg-primary/90 transition-all flex items-center space-x-2">
                        <i class="fa fa-plus"></i>
                        <span>新建接口</span>
                    </button>
                </div>
            </div>

            <!-- Tab标签页导航 -->
            <div class="bg-white rounded-lg shadow-card mb-6">
                <div class="border-b border-gray-200">
                    <div class="flex overflow-x-auto scrollbar-hide">
                        <button id="tab-view" class="tab-button active px-6 py-3 text-sm font-medium border-b-2 border-transparent">
                            <i class="fa fa-eye mr-1"></i> 接口查看
                        </button>
                        <button id="tab-design" class="tab-button px-6 py-3 text-sm font-medium border-b-2 border-transparent text-gray-600">
                            <i class="fa fa-pencil mr-1"></i> 接口设计
                        </button>
                        <button id="tab-trial" class="tab-button px-6 py-3 text-sm font-medium border-b-2 border-transparent text-gray-600">
                            <i class="fa fa-flask mr-1"></i> 接口试用
                        </button>
                        <button id="tab-subscription" class="tab-button px-6 py-3 text-sm font-medium border-b-2 border-transparent text-gray-600">
                            <i class="fa fa-bookmark mr-1"></i> 订阅管理
                        </button>
                        <button id="tab-statistics" class="tab-button px-6 py-3 text-sm font-medium border-b-2 border-transparent text-gray-600">
                            <i class="fa fa-bar-chart mr-1"></i> 运营统计
                        </button>
                        <button id="tab-config" class="tab-button px-6 py-3 text-sm font-medium border-b-2 border-transparent text-gray-600">
                            <i class="fa fa-cog mr-1"></i> 功能配置
                        </button>
                    </div>
                </div>

                <!-- Tab内容区域 -->
                <div class="p-6">
                    <!-- 接口查看Tab内容 -->
                    <div id="content-view" class="tab-content">
                        <h3 class="text-lg font-semibold text-neutral-700 mb-4">按系统查看接口</h3>
                        
                        <!-- 系统筛选 -->
                        <div class="mb-4 flex items-center space-x-4">
                            <select class="px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30">
                                <option value="">全部系统</option>
                                <option value="core">核心银行系统</option>
                                <option value="online">网上银行系统</option>
                                <option value="mobile">手机银行系统</option>
                                <option value="payment">支付系统</option>
                            </select>
                            <div class="relative flex-1 max-w-md">
                                <input type="text" placeholder="搜索接口名称或ID..." 
                                    class="w-full pl-10 pr-4 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30">
                                <i class="fa fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-neutral-400"></i>
                            </div>
                        </div>
                        
                        <!-- 系统卡片列表 -->
                        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
                            <!-- 核心银行系统 -->
                            <div class="system-card bg-white border border-neutral-200 rounded-lg p-4 cursor-pointer">
                                <div class="flex items-start justify-between mb-3">
                                    <div class="w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center text-primary">
                                        <i class="fa fa-bank text-xl"></i>
                                    </div>
                                    <span class="px-2 py-1 text-xs rounded-full bg-success/10 text-success">运行中</span>
                                </div>
                                <h4 class="text-base font-semibold text-neutral-700 mb-1">核心银行系统</h4>
                                <p class="text-sm text-neutral-500 mb-3">Core Banking System</p>
                                <div class="flex items-center justify-between text-xs text-neutral-400">
                                    <span><i class="fa fa-plug mr-1"></i> 128个接口</span>
                                    <span><i class="fa fa-clock-o mr-1"></i> 最近更新: 2天前</span>
                                </div>
                            </div>
                            
                            <!-- 网上银行系统 -->
                            <div class="system-card bg-white border border-neutral-200 rounded-lg p-4 cursor-pointer">
                                <div class="flex items-start justify-between mb-3">
                                    <div class="w-12 h-12 rounded-lg bg-secondary/10 flex items-center justify-center text-secondary">
                                        <i class="fa fa-globe text-xl"></i>
                                    </div>
                                    <span class="px-2 py-1 text-xs rounded-full bg-success/10 text-success">运行中</span>
                                </div>
                                <h4 class="text-base font-semibold text-neutral-700 mb-1">网上银行系统</h4>
                                <p class="text-sm text-neutral-500 mb-3">Online Banking System</p>
                                <div class="flex items-center justify-between text-xs text-neutral-400">
                                    <span><i class="fa fa-plug mr-1"></i> 86个接口</span>
                                    <span><i class="fa fa-clock-o mr-1"></i> 最近更新: 1天前</span>
                                </div>
                            </div>
                            
                            <!-- 手机银行系统 -->
                            <div class="system-card bg-white border border-neutral-200 rounded-lg p-4 cursor-pointer">
                                <div class="flex items-start justify-between mb-3">
                                    <div class="w-12 h-12 rounded-lg bg-warning/10 flex items-center justify-center text-warning">
                                        <i class="fa fa-mobile text-2xl"></i>
                                    </div>
                                    <span class="px-2 py-1 text-xs rounded-full bg-warning/10 text-warning">维护中</span>
                                </div>
                                <h4 class="text-base font-semibold text-neutral-700 mb-1">手机银行系统</h4>
                                <p class="text-sm text-neutral-500 mb-3">Mobile Banking App</p>
                                <div class="flex items-center justify-between text-xs text-neutral-400">
                                    <span><i class="fa fa-plug mr-1"></i> 95个接口</span>
                                    <span><i class="fa fa-clock-o mr-1"></i> 最近更新: 3小时前</span>
                                </div>
                            </div>
                            
                            <!-- 支付系统 -->
                            <div class="system-card bg-white border border-neutral-200 rounded-lg p-4 cursor-pointer">
                                <div class="flex items-start justify-between mb-3">
                                    <div class="w-12 h-12 rounded-lg bg-success/10 flex items-center justify-center text-success">
                                        <i class="fa fa-credit-card text-xl"></i>
                                    </div>
                                    <span class="px-2 py-1 text-xs rounded-full bg-success/10 text-success">运行中</span>
                                </div>
                                <h4 class="text-base font-semibold text-neutral-700 mb-1">支付系统</h4>
                                <p class="text-sm text-neutral-500 mb-3">Payment Gateway</p>
                                <div class="flex items-center justify-between text-xs text-neutral-400">
                                    <span><i class="fa fa-plug mr-1"></i> 52个接口</span>
                                    <span><i class="fa fa-clock-o mr-1"></i> 最近更新: 5天前</span>
                                </div>
                            </div>
                            
                            <!-- 数据服务系统 -->
                            <div class="system-card bg-white border border-neutral-200 rounded-lg p-4 cursor-pointer">
                                <div class="flex items-start justify-between mb-3">
                                    <div class="w-12 h-12 rounded-lg bg-purple-100 flex items-center justify-center text-purple-600">
                                        <i class="fa fa-database text-xl"></i>
                                    </div>
                                    <span class="px-2 py-1 text-xs rounded-full bg-success/10 text-success">运行中</span>
                                </div>
                                <h4 class="text-base font-semibold text-neutral-700 mb-1">数据服务系统</h4>
                                <p class="text-sm text-neutral-500 mb-3">Data Service Platform</p>
                                <div class="flex items-center justify-between text-xs text-neutral-400">
                                    <span><i class="fa fa-plug mr-1"></i> 64个接口</span>
                                    <span><i class="fa fa-clock-o mr-1"></i> 最近更新: 1周前</span>
                                </div>
                            </div>
                            
                            <!-- 风险管理系统 -->
                            <div class="system-card bg-white border border-neutral-200 rounded-lg p-4 cursor-pointer">
                                <div class="flex items-start justify-between mb-3">
                                    <div class="w-12 h-12 rounded-lg bg-danger/10 flex items-center justify-center text-danger">
                                        <i class="fa fa-shield text-xl"></i>
                                    </div>
                                    <span class="px-2 py-1 text-xs rounded-full bg-success/10 text-success">运行中</span>
                                </div>
                                <h4 class="text-base font-semibold text-neutral-700 mb-1">风险管理系统</h4>
                                <p class="text-sm text-neutral-500 mb-3">Risk Management System</p>
                                <div class="flex items-center justify-between text-xs text-neutral-400">
                                    <span><i class="fa fa-plug mr-1"></i> 42个接口</span>
                                    <span><i class="fa fa-clock-o mr-1"></i> 最近更新: 3天前</span>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- 接口设计Tab内容 -->
                    <div id="content-design" class="tab-content hidden">
                        <h3 class="text-lg font-semibold text-neutral-700 mb-4">接口设计</h3>
                        
                        <!-- 设计方式选择 -->
                        <div class="mb-6 bg-gradient-to-r from-blue-50 to-indigo-50 p-4 rounded-lg border border-blue-200">
                            <h4 class="text-sm font-semibold text-gray-800 mb-3 flex items-center">
                                <i class="fa fa-wrench text-primary mr-2"></i>
                                选择设计方式
                            </h4>
                            <div class="flex flex-wrap gap-4">
                                <label class="flex items-center cursor-pointer group">
                                    <input type="radio" name="design_type" value="original" class="design-type-radio w-4 h-4 text-primary focus:ring-primary" checked>
                                    <span class="ml-2 text-sm font-medium text-gray-700 group-hover:text-primary transition-colors">
                                        <i class="fa fa-file-code-o mr-1"></i>原接口设计
                                    </span>
                                </label>
                                <label class="flex items-center cursor-pointer group">
                                    <input type="radio" name="design_type" value="crpc" class="design-type-radio w-4 h-4 text-primary focus:ring-primary">
                                    <span class="ml-2 text-sm font-medium text-gray-700 group-hover:text-primary transition-colors">
                                        <i class="fa fa-code-fork mr-1"></i>CRPC接口多版本设计
                                    </span>
                                </label>
                            </div>
                            <p class="text-xs text-gray-500 mt-2">
                                <i class="fa fa-info-circle mr-1"></i>
                                原接口设计：传统REST API设计方式；CRPC设计：支持多版本管理的RPC接口设计
                            </p>
                        </div>
                        
                        <!-- 原接口设计内容 -->
                        <div id="original-design-content" class="design-content">
                            <div class="bg-white border border-neutral-200 rounded-lg p-6">
                                <h4 class="text-base font-semibold text-neutral-700 mb-4">创建REST API接口</h4>
                                <form class="space-y-4">
                                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                                        <div>
                                            <label class="block text-sm font-medium text-gray-700 mb-1">接口名称</label>
                                            <input type="text" class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30" placeholder="例如：用户查询接口">
                                        </div>
                                        <div>
                                            <label class="block text-sm font-medium text-gray-700 mb-1">所属系统</label>
                                            <select class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30">
                                                <option value="">请选择系统</option>
                                                <option value="core">核心银行系统</option>
                                                <option value="online">网上银行系统</option>
                                                <option value="mobile">手机银行系统</option>
                                            </select>
                                        </div>
                                        <div>
                                            <label class="block text-sm font-medium text-gray-700 mb-1">请求方法</label>
                                            <select class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30">
                                                <option value="GET">GET</option>
                                                <option value="POST">POST</option>
                                                <option value="PUT">PUT</option>
                                                <option value="DELETE">DELETE</option>
                                            </select>
                                        </div>
                                        <div>
                                            <label class="block text-sm font-medium text-gray-700 mb-1">接口路径</label>
                                            <input type="text" class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30" placeholder="/api/v1/users">
                                        </div>
                                    </div>
                                    <div>
                                        <label class="block text-sm font-medium text-gray-700 mb-1">接口描述</label>
                                        <textarea rows="3" class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30" placeholder="请输入接口描述"></textarea>
                                    </div>
                                    <div class="flex justify-end space-x-2">
                                        <button type="button" class="px-4 py-2 border border-neutral-200 text-neutral-700 rounded-md hover:bg-neutral-50 transition-all">取消
                                        </button>
                                        <button type="submit" class="px-4 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition-all">
                                            <i class="fa fa-check mr-1"></i> 创建接口
                                        </button>
                                    </div>
                                </form>
                            </div>
                        </div>
                        
                        <!-- CRPC接口多版本设计内容 -->
                        <div id="crpc-design-content" class="design-content hidden">
                            <div class="bg-white border border-neutral-200 rounded-lg p-6">
                                <h4 class="text-base font-semibold text-neutral-700 mb-4">创建CRPC多版本接口</h4>
                                <form class="space-y-4">
                                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                                        <div>
                                            <label class="block text-sm font-medium text-gray-700 mb-1">接口名称</label>
                                            <input type="text" class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30" placeholder="例如：用户服务接口">
                                        </div>
                                        <div>
                                            <label class="block text-sm font-medium text-gray-700 mb-1">所属系统</label>
                                            <select class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30">
                                                <option value="">请选择系统</option>
                                                <option value="core">核心银行系统</option>
                                                <option value="online">网上银行系统</option>
                                                <option value="mobile">手机银行系统</option>
                                            </select>
                                        </div>
                                        <div>
                                            <label class="block text-sm font-medium text-gray-700 mb-1">服务名称</label>
                                            <input type="text" class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30" placeholder="UserService">
                                        </div>
                                        <div>
                                            <label class="block text-sm font-medium text-gray-700 mb-1">版本号</label>
                                            <input type="text" class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30" placeholder="v1.0.0">
                                        </div>
                                    </div>
                                    <div>
                                        <label class="block text-sm font-medium text-gray-700 mb-1">接口描述</label>
                                        <textarea rows="3" class="w-full px-3 py-2 border border-neutral-200 rounded-md focus:outline-none focus:ring-2 focus:ring-primary/30" placeholder="请输入接口描述"></textarea>
                                    </div>
                                    <div class="bg-blue-50 border border-blue-200 rounded-lg p-3">
                                        <h5 class="text-sm font-semibold text-gray-800 mb-2">
                                            <i class="fa fa-code-fork text-primary mr-1"></i> 版本管理特性
                                        </h5>
                                        <ul class="text-xs text-gray-600 space-y-1 ml-4">
                                            <li>✓ 支持多版本并行运行</li>
                                            <li>✓ 自动版本兼容性检查</li>
                                            <li>✓ 版本切换无缝迁移</li>
                                            <li>✓ 历史版本回溯能力</li>
                                        </ul>
                                    </div>
                                    <div class="flex justify-end space-x-2">
                                        <button type="button" class="px-4 py-2 border border-neutral-200 text-neutral-700 rounded-md hover:bg-neutral-50 transition-all">
                                            取消
                                        </button>
                                        <button type="submit" class="px-4 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition-all">
                                            <i class="fa fa-check mr-1"></i> 创建CRPC接口
                                        </button>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>

                    <!-- 接口试用Tab内容 -->
                    <div id="content-trial" class="tab-content hidden">
                        <h3 class="text-lg font-semibold text-neutral-700 mb-4">接口试用</h3>
                        <div class="bg-white border border-neutral-200 rounded-lg p-6">
                            <p class="text-neutral-500 text-center py-8">
                                <i class="fa fa-flask text-4xl text-neutral-300 mb-3"></i><br>
                                选择一个系统和接口进行在线测试
                            </p>
                        </div>
                    </div>

                    <!-- 订阅管理Tab内容 -->
                    <div id="content-subscription" class="tab-content hidden">
                        <h3 class="text-lg font-semibold text-neutral-700 mb-4">订阅管理</h3>
                        <div class="bg-white border border-neutral-200 rounded-lg p-6">
                            <p class="text-neutral-500 text-center py-8">
                                <i class="fa fa-bookmark text-4xl text-neutral-300 mb-3"></i><br>
                                管理接口订阅关系
                            </p>
                        </div>
                    </div>

                    <!-- 运营统计Tab内容 -->
                    <div id="content-statistics" class="tab-content hidden">
                        <h3 class="text-lg font-semibold text-neutral-700 mb-4">运营统计</h3>
                        <div class="bg-white border border-neutral-200 rounded-lg p-6">
                            <p class="text-neutral-500 text-center py-8">
                                <i class="fa fa-bar-chart text-4xl text-neutral-300 mb-3"></i><br>
                                接口调用统计和性能分析
                            </p>
                        </div>
                    </div>

                    <!-- 功能配置Tab内容 -->
                    <div id="content-config" class="tab-content hidden">
                        <h3 class="text-lg font-semibold text-neutral-700 mb-4">功能配置</h3>
                        <div class="bg-white border border-neutral-200 rounded-lg p-6">
                            <p class="text-neutral-500 text-center py-8">
                                <i class="fa fa-cog text-4xl text-neutral-300 mb-3"></i><br>
                                接口管理功能配置
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <!-- JavaScript -->
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // Tab切换功能
            const tabs = document.querySelectorAll('.tab-button');
            const tabContents = document.querySelectorAll('.tab-content');
            
            tabs.forEach(tab => {
                tab.addEventListener('click', function() {
                    const targetId = this.id.replace('tab-', 'content-');
                    
                    // 移除所有active样式
                    tabs.forEach(t => {
                        t.classList.remove('active', 'border-primary', 'text-primary');
                        t.classList.add('text-gray-600');
                    });
                    
                    // 添加当前active样式
                    this.classList.add('active', 'text-primary');
                    this.classList.remove('text-gray-600');
                    
                    // 隐藏所有内容
                    tabContents.forEach(content => {
                        content.classList.add('hidden');
                    });
                    
                    // 显示当前内容
                    const targetContent = document.getElementById(targetId);
                    if (targetContent) {
                        targetContent.classList.remove('hidden');
                    }
                });
            });
            
            // 接口设计方式切换
            const designTypeRadios = document.querySelectorAll('.design-type-radio');
            const originalDesignContent = document.getElementById('original-design-content');
            const crpcDesignContent = document.getElementById('crpc-design-content');
            
            designTypeRadios.forEach(radio => {
                radio.addEventListener('change', function() {
                    if (this.value === 'original') {
                        originalDesignContent.classList.remove('hidden');
                        crpcDesignContent.classList.add('hidden');
                    } else if (this.value === 'crpc') {
                        originalDesignContent.classList.add('hidden');
                        crpcDesignContent.classList.remove('hidden');
                    }
                });
            });
            
            // 移动端菜单切换
            const menuToggle = document.createElement('button');
            menuToggle.className = 'fixed bottom-4 right-4 bg-primary text-white w-12 h-12 rounded-full shadow-lg flex items-center justify-center md:hidden z-50';
            menuToggle.innerHTML = '<i class="fa fa-bars text-xl"></i>';
            document.body.appendChild(menuToggle);

            menuToggle.addEventListener('click', function() {
                const aside = document.querySelector('aside');
                aside.classList.toggle('-translate-x-full');
                if (aside.classList.contains('-translate-x-full')) {
                    menuToggle.innerHTML = '<i class="fa fa-bars text-xl"></i>';
                } else {
                    menuToggle.innerHTML = '<i class="fa fa-times text-xl"></i>';
                }
            });
        });
    </script>
    <script>
        // 设计管理菜单展开/收起功能
        document.addEventListener('DOMContentLoaded', function() {
            const designMenuToggle = document.getElementById('design-menu-toggle');
            const designSubmenu = document.getElementById('design-submenu');
            const designMenuWrapper = document.querySelector('.design-menu-wrapper');
            
            if (designMenuToggle && designSubmenu) {
                designMenuToggle.addEventListener('click', function(e) {
                    e.stopPropagation();
                    this.querySelector('i').classList.toggle('rotate-90');
                    if (designSubmenu.classList.contains('hidden')) {
                        designSubmenu.classList.remove('hidden');
                        setTimeout(() => {
                            designSubmenu.classList.remove('opacity-0');
                        }, 10);
                    } else {
                        designSubmenu.classList.add('opacity-0');
                        setTimeout(() => {
                            designSubmenu.classList.add('hidden');
                        }, 300);
                    }
                });
                
                // 点击菜单项外部区域收起菜单
                document.addEventListener('click', function(e) {
                    if (designMenuWrapper && !designMenuWrapper.contains(e.target)) {
                        designSubmenu.classList.add('opacity-0');
                        setTimeout(() => {
                            designSubmenu.classList.add('hidden');
                        }, 300);
                        if (designMenuToggle.querySelector('i')) {
                            designMenuToggle.querySelector('i').classList.remove('rotate-90');
                        }
                    }
                });
            }
            
            // 测试管理菜单展开/收起功能
            const testMenuToggle = document.getElementById('test-menu-toggle');
            const testSubmenu = document.getElementById('test-submenu');
            const testMenuWrapper = document.querySelector('.test-menu-wrapper');
            
            if (testMenuToggle && testSubmenu) {
                testMenuToggle.addEventListener('click', function(e) {
                    e.stopPropagation();
                    this.querySelector('i').classList.toggle('rotate-90');
                    if (testSubmenu.classList.contains('hidden')) {
                        testSubmenu.classList.remove('hidden');
                        setTimeout(() => {
                            testSubmenu.classList.remove('opacity-0');
                        }, 10);
                    } else {
                        testSubmenu.classList.add('opacity-0');
                        setTimeout(() => {
                            testSubmenu.classList.add('hidden');
                        }, 300);
                    }
                });
                
                // 点击菜单项外部区域收起菜单
                document.addEventListener('click', function(e) {
                    if (testMenuWrapper && !testMenuWrapper.contains(e.target)) {
                        testSubmenu.classList.add('opacity-0');
                        setTimeout(() => {
                            testSubmenu.classList.add('hidden');
                        }, 300);
                        if (testMenuToggle.querySelector('i')) {
                            testMenuToggle.querySelector('i').classList.remove('rotate-90');
                        }
                    }
                });
            }
        });
    </script>
</body>
</html>
